<?php
    include 'classes/I18nCls.php';
    // read language from url parameter "lang" if exist and set it to session
    $_SESSION["language"]="ita";
    if (isset($_GET["lang"]))   
        $_SESSION["language"]=$_GET["lang"];    

    // open a new istance of the class language manager
    $lang = new I18n();
    $lang->setIdLang($_SESSION["language"]);
    $lang->setMsg("languages/".$_SESSION["language"].".txt");
?>
